﻿using dz.u9.jky.schema.Common;
using dz.u9.jky.schema.InvDoc;
using dz.util.core;
using Microsoft.AspNetCore.Mvc;

namespace dz.u9.webapi.Controllers
{
    /// <summary>
    /// 调入接口
    /// </summary>
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class TransferInController : U9BaseController
    {
        [HttpPost]
        public async Task<U9CResult> AddAndAudit(DzTransferIn dto)
        {
            return await U9Invoke(JsonUtil.Serialize(dto), new ApiParm() { Url = "DzTransferInJky/AddAndAudit", Desc = "调入单新增审核" });
        }

        [HttpPost]
        public async Task<U9CResult> Add(DzTransferIn dto)
        {
            return await U9Invoke(JsonUtil.Serialize(dto), new ApiParm() { Url = "DzTransferInJky/Add", Desc = "调入单新增" });
        }
    }
}
